//
//  MyMoneyTableViewCell.m
//  ShangAPP
//
//  Created by 徐番茄丶 on 16/1/22.
//  Copyright © 2016年 wangdao. All rights reserved.
//

#import "MyMoneyTableViewCell.h"
#import "MyTools.h"
@implementation MyMoneyTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self viewCreate];
    }
    return self;
}

-(void)viewCreate{
    //50
    
    _myImage = [[UIImageView alloc]initWithFrame:CGRectMake(12, 10, 30, 30)];
    [self addSubview:_myImage];
    
    _titleLab = [[UILabel alloc]initWithFrame:CGRectMake(54, 10, 60, 30)];
    _titleLab.textColor = UIColorFromRGB(0x666666);
    _titleLab.font = [UIFont systemFontOfSize:15];
    [self addSubview:_titleLab];
    
    _moneyLab = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH - 150, 10, 120, 30)];
    _moneyLab.textColor = UIColorFromRGB(0xFF5722);
    _moneyLab.font = [UIFont systemFontOfSize:13];
    _moneyLab.textAlignment = NSTextAlignmentRight;
    [self addSubview:_moneyLab];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
